
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Pessoal
 */
public class tabela_cad_usuario {
    private Long id;
    private String usuario1;
    private String confirma_senha;
    private String email;

    @PersistenceCapable(identityType = IdentityType.APPLICATION)
    public class gravar_cad_usuario{
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Long id;

        @Persistent                       //persistencias by leticia
        private String usuario1;

        @Persistent
        private String confirma_senha;

        @Persistent
        private String email;

        public gravar_cad_usuario(String usuario1,String confirma_senha,String email){
            this.usuario1 = usuario1;
            this.confirma_senha = confirma_senha;
            this.email = email;
        }
        public Long getId(){
            return id;
        }
        public String getUsuario1(){
            return usuario1;
        }
        public String getConfirma_senha(){
            return confirma_senha;
        }
        public String getEmail(){
            return email;
        }
        public void setUsuario1(String usuario1){
            this .usuario1 = usuario1;
        }
        public void setConfirma_senha( String confirma_senha){
            this.confirma_senha = confirma_senha;
        }
        public void setEmail(String email){
            this.email = email;
        }
    }
}
